<template>
  <div class="like">
    <div class="center">
      <div class="top">
        <div class="tittle">收藏</div>
        <div class="ico">
          <div class="txt">
            <van-icon name="search" />
            <p>搜索</p>
          </div>
          <div class="txt">
            <van-icon name="credit-pay" />
            <p>专辑</p>
          </div>
          <van-icon name="ellipsis" />
        </div>
      </div>
      <div class="listbar">
        <van-tabs sticky>
          <van-tab title="全部">
            <AllThree />
            <div class="contant">
              <img src="../../../public/cheyi/like.jpg" alt />
              <p>还没有收藏过哦~</p>
            </div>
            <MaybeLike />
          </van-tab>
          <van-tab title="商户">
            <AllThree />
            <div class="contant">
              <img src="../../../public/cheyi/like.jpg" alt />
              <p>还没有收藏过哦~</p>
            </div>
            <MaybeLike />
          </van-tab>
          <van-tab title="评价/笔记">
            <AllThree />
            <div class="contant">
              <img src="../../../public/cheyi/like.jpg" alt />
              <p>还没有收藏过哦~</p>
            </div>
            <MaybeLike />
          </van-tab>
          <van-tab title="团购">
            <AllThree />
            <div class="contant">
              <img src="../../../public/cheyi/like.jpg" alt />
              <p>暂无相关收藏</p>
              <span @click="gohome()">去首页逛逛</span>
            </div>
          </van-tab>
          <van-tab title="其他">
            <div class="contant">
              <img src="../../../public/cheyi/like.jpg" alt />
              <p>暂无相关收藏</p>
              <span @click="gohome()">去首页逛逛</span>
            </div>
          </van-tab>
        </van-tabs>
      </div>
    </div>

    <HomeBottombar />
  </div>
</template>

<script>
import HomeBottombar from "../../components/cheyi/home/HomeBottombar.vue";
import AllThree from "../../components/cheyi/like/AllThree.vue";
import MaybeLike from "../../components/cheyi/like/MaybeLike.vue";

export default {
  components: {
    HomeBottombar,
    AllThree,
    MaybeLike
  },
  methods: {
    gohome() {
      this.$router.push("/homeindex");
    }
  }
};
</script>

<style lang="scss" scoped>
.like {
  width: 100%;
  height: 177.867vw;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
  .center {
    width: 95%;
    margin: auto;
    ::-webkit-scrollbar {
      display: none;
    }
    .top {
      width: 100%;
      height: 10.667vw;
      position: relative;
      .tittle {
        width: 13.333vw;
        line-height: 10.667vw;
        position: absolute;
        left: 45%;
        font-size: 4.267vw;
      }
      .ico {
        position: absolute;
        right: 0;
        height: 100%;
        display: flex;
        text-align: center;
        .txt {
          p {
            display: block;
            font-size: 2.133vw;
          }
        }
        ::v-deep .van-icon {
          font-size: 5.333vw;
          padding: 0 1.6vw;
        }
      }
    }
    .listbar {
      width: 100%;
      height: 9.333vw;
      font-size: 3.2vw;
      font-weight: 500;
      .contant {
        width: 100%;
        height: 64vw;
        font-size: 3.733vw;
        text-align: center;
        img {
          margin-top: 16vw;
          width: 26.667vw;
          margin-bottom: 2.667vw;
        }
        span {
          display: block;
          margin: 4vw auto;
          width: 37.333vw;
          height: 9.6vw;
          border-radius: 4.8vw;
          line-height: 9.6vw;
          font-size: 4.267vw;
          text-align: center;
          color: #ff5e3b;
          border: 0.267vw solid #ff5e3b;
        }
      }
      ::v-deep .van-tabs__content {
        width: 105%;
        position: absolute;
        left: -5%;
        height: 138.667vw;
        overflow: auto;
      }
      ::v-deep .van-tabs,
      ::v-deep .van-sticky {
        height: 9.333vw;
      }
      ::v-deep .van-tabs__line {
        bottom: 2.133vw;
        background-color: #ff5e3b;
      }
      ::v-deep .van-tabs__nav--line {
        box-sizing: content-box;
        width: 100%;
        height: 9.333vw;
        padding-bottom: 0;
        border-bottom: 0.267vw solid #f0eeee;
      }
      ::v-deep .van-tab--active {
        font-size: 4.267vw;
        font-weight: bolder;
      }
      ::v-deep .van-tabs__content {
        padding-left: 2.133vw;
      }
    }
  }
}
</style>